Add Claude Code GitHub Workflow - #9
Conversation
|
Caution Review failedThe pull request is closed. WalkthroughAdds two GitHub Actions workflows: one for automated code review on pull_request events and another to run on issue/PR events when @claude is mentioned. Both check out the repo and invoke a Claude Code Action with configurable prompts and permissions; optional filters and extra permissions are documented but commented out. Changes
Sequence Diagram(s)sequenceDiagram
autonumber
actor Dev as Developer
participant GH as GitHub
participant WF as Workflow: Claude Code Review
participant Action as Claude Code Action
participant PR as Pull Request
Dev->>GH: Open/Synchronize PR
GH-->>WF: Trigger on pull_request
WF->>WF: Checkout (fetch-depth: 1)
WF->>Action: Run review with prompt and claude_args
Action-->>PR: Post review comment via gh pr comment
sequenceDiagram
autonumber
actor User as User
participant GH as GitHub
participant WF as Workflow: Claude Code
participant Action as Claude Code Action
participant IssuePR as Issue/PR
User->>GH: Comment mentioning @claude
GH-->>WF: Trigger on issue/PR/comment events
WF->>WF: Checkout (fetch-depth: 1)
WF->>Action: Execute with token (optional custom prompt/args)
Action-->>IssuePR: Respond with generated output
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes Possibly related PRs
Poem
✨ Finishing touches🧪 Generate unit tests
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (2)
Comment |
🤖 Installing Claude Code GitHub App
This PR adds a GitHub Actions workflow that enables Claude Code integration in our repository.
What is Claude Code?
Claude Code is an AI coding agent that can help with:
How it works
Once this PR is merged, we'll be able to interact with Claude by mentioning @claude in a pull request or issue comment.
Once the workflow is triggered, Claude will analyze the comment and surrounding context, and execute on the request in a GitHub action.
Important Notes
Security
There's more information in the Claude Code action repo.
After merging this PR, let's try mentioning @claude in a comment on any PR to get started!
Summary by CodeRabbit